package com.ruoyi.cinema.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 会员名称对象 customer
 *
 * @author HHAOYU
 * @date 2020-12-08
 */
@TableName("customer")
public class Customer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id")
    private Long id;
    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;
    /** 头像 */
    @Excel(name = "头像")
    private String headImage;
    /** 等级编号 */
    @Excel(name = "等级编号")
    private String levelCode;
    /** 等级名称 */
    @Excel(name = "等级名称")
    private String levelName;
    /** 等级数 */
    @Excel(name = "等级数")
    private Long levelNum;
    /** 成长值 */
    @Excel(name = "成长值")
    private Long growthAmount;
    /** 积分数 */
    @Excel(name = "积分数")
    private Long pointAmount;
    /** 电话 */
    @Excel(name = "电话")
    private String phone;
    /** 微信openId */
    private String openId;

    @TableField(exist=false)
    private String openIdCode;

    @TableField(exist=false)
    private String accessToken;

    private String sessionKey;
    /**
     * 凤凰云智会员ID
     */
    private String accountId;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }
    public void setHeadImage(String headImage)
    {
        this.headImage = headImage;
    }

    public String getHeadImage()
    {
        return headImage;
    }
    public void setLevelCode(String levelCode)
    {
        this.levelCode = levelCode;
    }

    public String getLevelCode()
    {
        return levelCode;
    }
    public void setLevelName(String levelName)
    {
        this.levelName = levelName;
    }

    public String getLevelName()
    {
        return levelName;
    }
    public void setLevelNum(Long levelNum)
    {
        this.levelNum = levelNum;
    }

    public Long getLevelNum()
    {
        return levelNum;
    }
    public void setGrowthAmount(Long growthAmount)
    {
        this.growthAmount = growthAmount;
    }

    public Long getGrowthAmount()
    {
        return growthAmount;
    }
    public void setPointAmount(Long pointAmount)
    {
        this.pointAmount = pointAmount;
    }

    public Long getPointAmount()
    {
        return pointAmount;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }

    public String getOpenIdCode() {
        return openIdCode;
    }

    public void setOpenIdCode(String openIdCode) {
        this.openIdCode = openIdCode;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nickName", getNickName())
            .append("headImage", getHeadImage())
            .append("levelCode", getLevelCode())
            .append("levelName", getLevelName())
            .append("levelNum", getLevelNum())
            .append("growthAmount", getGrowthAmount())
            .append("pointAmount", getPointAmount())
            .append("phone", getPhone())
            .append("openId", getOpenId())
            .append("accountId",getAccountId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
